package gateway.model.vo;

import com.google.common.collect.Lists;
import com.google.common.collect.Sets;
import common.model.po.SysWebConfig;
import common.model.vo.ButtonVo;
import common.model.vo.MenuVo;
import lombok.Data;

import java.util.Date;
import java.util.List;
import java.util.Set;

/**
 * 登录成功返回前端的用户信息
 *
 * @author 米泽鹏
 * @since 2021-07-31 5:57 下午
 */
@Data
public class UserVo {

	private Long userId;
	private String token;
	private String nickname;
	private String username;
	private List<String> roleCodes = Lists.newArrayList();
	private List<String> roleNames = Lists.newArrayList();
	private Boolean isAdmin;
	private String email;
	private String avatar;
	private Integer gender;
	private String introduction;
	private List<Integer> emailNotifyTypes;
	private Date lastModifyUsernameDate;
	private Date lastModifyNicknameDate;
	private Set<MenuVo> menus = Sets.newHashSet();
	private Set<ButtonVo> buttons = Sets.newHashSet();
	private SysWebConfig webConfig;
	private Date expire;

}
